package com.mall.business.service;

import java.math.BigDecimal;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.business.domain.TMemberLevel;

/**
 * 会员等级Service接口
 *
 * @author ruoyi
 * @date 2025-03-31
 */
public interface ITMemberLevelService  extends IService<TMemberLevel>
{
    /**
     * 查询会员等级
     *
     * @param id 会员等级主键
     * @return 会员等级
     */
    public TMemberLevel selectTMemberLevelById(String id);

    /**
     * 查询会员等级列表
     *
     * @param tMemberLevel 会员等级
     * @return 会员等级集合
     */
    public List<TMemberLevel> selectTMemberLevelList(TMemberLevel tMemberLevel);

    /**
     * 新增会员等级
     *
     * @param tMemberLevel 会员等级
     * @return 结果
     */
    public int insertTMemberLevel(TMemberLevel tMemberLevel);

    /**
     * 修改会员等级
     *
     * @param tMemberLevel 会员等级
     * @return 结果
     */
    public int updateTMemberLevel(TMemberLevel tMemberLevel);

    /**
     * 批量删除会员等级
     *
     * @param ids 需要删除的会员等级主键集合
     * @return 结果
     */
    public int deleteTMemberLevelByIds(String[] ids);

    /**
     * 删除会员等级信息
     *
     * @param id 会员等级主键
     * @return 结果
     */
    public int deleteTMemberLevelById(String id);


    public int getMemberLevel(BigDecimal   totalMoney);

    public BigDecimal getMemberRebateByLevel(Integer level);

    public TMemberLevel getUserMemberLevel(BigDecimal   totalMoney);
}
